/*
 * CUnitDriver.cpp
 *
 *  Created on: 24.02.2012
 *      Author: Kirill Blinov
 *      Copyright: LGPL
 */

#include "IUnitDriver.h"
#include "Physics Engine/PhysicsEngine.h"
#include "Physics Engine/CPhysicsController.h"
#include "CAnimationController.h"

IUnitDriver::IUnitDriver( CAnimationController* AnimationController, CPhysicsController* PhysicsController ) :
					animationController(AnimationController), physicsController(PhysicsController)
{

}

IUnitDriver::IUnitDriver( const IUnitDriver& Base )
{
	animationController = new CAnimationController( *Base.animationController );
	physicsController   = new CPhysicsController( *Base.physicsController  );
}

virtual IUnitDriver::~IUnitDriver()
{
	delete animationController;
	delete physicsController;
}
